package com.gibs.peixunapi.service;

import java.util.List;

import com.gibs.peixunapi.VO.ExerciseVO;
import com.gibs.peixunapi.model.CourseSubjectHub;
import com.gibs.peixunapi.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;

import javax.validation.Valid;

import com.gibs.peixunapi.model.Exercises;

public interface ExercisesService {

    Result create(@Valid Exercises object);

    Result save(@Valid Exercises object);

    Result delete(Integer id);

    Result get(Integer id);

    Result getList(String key);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);

	Result changeExercise(List<ExerciseVO> exerciseVOList);

	Result exerciseLink(Integer linkCurseId, Integer lickedCourseId);

    /**
     * 根据章节id以及章节类型查找CourseSubjectHub中的题库id列表并返回
     * @param chapterId 章节id
     * @param type 章节类型
     * @return 题库id列表
     */
    List<Integer> getSubjectHubIdList(Integer chapterId, String type);

}

